package com.jeesite.modules.dp.entity.vipinfo;

import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * VIP会员配置管理Entity
 * @author hancing.com
 * @version 2024-12-20
 */
@Table(name="dp_vipinfo", alias="a", label="VIP会员配置信息", columns={
		@Column(name="id", attrName="id", label="ID", isPK=true),
		@Column(name="title", attrName="title", label="标题", isQuery=false),
		@Column(name="smallpic", attrName="smallpic", label="缩略图", isQuery=false),
		@Column(name="oldprice", attrName="oldprice", label="原价", isQuery=false),
		@Column(name="price", attrName="price", label="现价", isQuery=false),
		@Column(name="vipcontent", attrName="vipcontent", label="vip权益说明", isQuery=false),
		@Column(name="vipdaylong", attrName="vipdaylong", label="时长", isQuery=false),
		@Column(name="viptimeunit", attrName="viptimeunit", label="时长单位", isQuery=false),
		@Column(name="isrm", attrName="isrm", label="时长单位", isQuery=false),
		
		@Column(name="sortno", attrName="sortno", label="排序号", isQuery=false),
	}, orderBy="a.sortno ASC"
)
public class DpVipinfo extends DataEntity<DpVipinfo> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String smallpic;		// 缩略图
	private Double oldprice;		// 原价
	private Double price;		// 现价
	private String vipcontent;		// vip权益说明
	private Long vipdaylong;		// 时长
	private String viptimeunit;		// 时长单位
	private String sortno;		// 排序号
	private String isrm;
	private List<String> qylist;

	public DpVipinfo() {
		this(null);
	}
	
	public DpVipinfo(String id){
		super(id);
	}
	
	@NotBlank(message="标题不能为空")
	@Size(min=0, max=255, message="标题长度不能超过 255 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Size(min=0, max=255, message="缩略图长度不能超过 255 个字符")
	public String getSmallpic() {
		return smallpic;
	}

	public void setSmallpic(String smallpic) {
		this.smallpic = smallpic;
	}
	
	@NotNull(message="原价不能为空")
	public Double getOldprice() {
		return oldprice;
	}

	public void setOldprice(Double oldprice) {
		this.oldprice = oldprice;
	}
	
	@NotNull(message="现价不能为空")
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@NotBlank(message="vip权益说明不能为空")
	public String getVipcontent() {
		return vipcontent;
	}

	public void setVipcontent(String vipcontent) {
		this.vipcontent = vipcontent;
	}
	
	@NotNull(message="时长不能为空")
	public Long getVipdaylong() {
		return vipdaylong;
	}

	public void setVipdaylong(Long vipdaylong) {
		this.vipdaylong = vipdaylong;
	}
	
	@NotBlank(message="时长单位不能为空")
	@Size(min=0, max=1, message="时长单位长度不能超过 1 个字符")
	public String getViptimeunit() {
		return viptimeunit;
	}

	public void setViptimeunit(String viptimeunit) {
		this.viptimeunit = viptimeunit;
	}
	
	@Size(min=0, max=255, message="排序号长度不能超过 255 个字符")
	public String getSortno() {
		return sortno;
	}

	public void setSortno(String sortno) {
		this.sortno = sortno;
	}

	public List<String> getQylist() {
		return qylist;
	}

	public void setQylist(List<String> qylist) {
		this.qylist = qylist;
	}

	public String getIsrm() {
		return isrm;
	}

	public void setIsrm(String isrm) {
		this.isrm = isrm;
	}
	
	
	
}